public class MyArgs {

	public static void main(String[] args) {
		System.out.println("Firstname: " + args[0]);
		System.out.println("Surname: " + args[1]);
		System.out.println("Age: " + args[2]);

		Integer ageAsNumber = Integer.parseInt(args[2]);

		String oldGuyMessage = " i'm sorry but your really old.";
		String youngGuyMessage = " i'm happy to say that your still young.";
		String oldGuyMessageWithName = "";
		String youngGuyMessageWithName = "";

		if (ageAsNumber >= 40) {

			oldGuyMessageWithName = args[0] + " " + args[1] + oldGuyMessage;
			System.out.println(oldGuyMessageWithName);

		}
		if (ageAsNumber < 40) {

			youngGuyMessageWithName = args[0] + " " + args[1] + youngGuyMessage;
			System.out.println(youngGuyMessageWithName);

		}
	}

}
